CCS/CCSTUDIO: #1965 cannot open source file "DeviceFamily.h" "driverlib/ioc.h" "drivers/PIN.h" 您所在的位置:网站首页 ccs报错could not open file CCS/CCSTUDIO: #1965 cannot open source file "DeviceFamily.h" "driverlib/ioc.h" "drivers/PIN.h"

CCS/CCSTUDIO: #1965 cannot open source file "DeviceFamily.h" "driverlib/ioc.h" "drivers/PIN.h"

2024-06-26 13:24| 来源: 网络整理| 查看: 265

Vincenzo,

Looking at the build output I can see that the following include paths are specified.

--include_path="C:/ti/simplelink_cc13x2_26x2_sdk_2_40_00_81/source/ti/devices"

--include_path="C:/ti/simplelink_cc13x2_26x2_sdk_2_40_00_81/source/ti/devices/cc13x2_cc26x2/driverlib"

--include_path="C:/ti/simplelink_cc13x2_26x2_sdk_2_40_00_81/source/ti/posix/ccs"

--include_path="C:/Projects/CCStudio/SWAN_FW20" --include_path="/source/ti/posix/ccs"

--include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.7.LTS/include"

These paths will not allow the compiler to find the files in question.  For example one error refers to:

"ti/devices/DeviceFamily.h"

DeviceFamily.h is in C:/ti/simplelink_cc13x2_26x2_sdk_2_40_00_81/source/ti/devices.  You have that path specified.  However the #include statement has "ti/devices/DeviceFamily.h".   That full string is used when looking on the search path.  Thus the path you need to specify to find that file is C:/ti/simplelink_cc13x2_26x2_sdk_2_40_00_81/source

For me when I look at an example project for the cc1312R from the 2.40 SDK it has the following paths:

You might want to define your include path as ${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source

That way it uses a variable for the location of the SDK.  CCS will update that based on the SDK that the project is configured to use.

Regards,

John



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有